//############################################################################
//## WiiDS Emulator (DeSmuME Port)											##
//## - March 8th 2010														##
//##																		##
//## btnmap.h																##
//## - Controller Button Maps												##
//############################################################################

#ifndef _BTNMAPS_H_
#define _BTNMAPS_H_

enum {
	CTRLR_NONE = -1,
	CTRLR_GCPAD,
	CTRLR_WIIMOTE,
	CTRLR_NUNCHUK,
	CTRLR_CLASSIC,
	CTRLR_KEYBOARD
};

const char ctrlrName[5][20] =
{ "GameCube Controller", "Wiimote", "Nunchuk + Wiimote", "Classic Controller", "Keyboard & Mouse" };

typedef struct _btn_map {
	u32 btn;					// button 'id'
	char* name;					// button name
} BtnMap;

typedef struct _ctrlr_map {
	BtnMap map[150];			// controller button map
	int num_btns;				// number of buttons on the controller
	u16 type;					// controller type
} CtrlrMap;

// externs:

extern CtrlrMap ctrlr_def[5];

#endif
